import * as THREE from 'three'

// 创建3D场景对象
const scene = new THREE.Scene()

// 添加物体
// 创建一个长方体
const geometry = new THREE.BoxGeometry(100, 100, 100)

// 创建一个红色基础材质对象
const material = new THREE.MeshBasicMaterial({ color: 0xff0000 })

// 使用网格实现物体和材质
const mesh = new THREE.Mesh(geometry, material)

// 添加物体到场景
scene.add(mesh)